package com.easylinkin.linkappapi.rulecomponent.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.easylinkin.linkappapi.rulecomponent.entity.RuleComponentAttribute;

/**
 * <p>
 * 规则组件 Mapper 接口
 * </p>
 *
 * @author liuming
 * @since 2020-08-27
 */
public interface RuleComponentAttributeMapper extends BaseMapper<RuleComponentAttribute> {

    List<RuleComponentAttribute> getRuleComponentAttributes(@Param("ruleComponentAttribute") RuleComponentAttribute ruleComponentAttribute);

    RuleComponentAttribute getRuleComponentAttribute(RuleComponentAttribute ruleComponentAttribute);
    
    List<RuleComponentAttribute> flushDeviceUnitData(@Param("deviceUnitId")String deviceUnitId,@Param("tenantId") String tenantId);

    int batchInsert(@Param("list") List<RuleComponentAttribute> list);
}
